package io.gitee.thinkbungee.mongo.controller.param;

import io.gitee.thinkbungee.crud.PageParam;
import io.gitee.thinkbungee.crud.annotation.Query;
import io.gitee.thinkbungee.enums.QueryEnum;
import io.gitee.thinkbungee.mongo.entity.Hourse;
import lombok.Data;

import java.io.Serializable;

/**
 * 查询参数
 *
 * @author chenyichang
 * @email 820117089@qq.com
 * @date 2022-05-26 17:17:25
 */
@Data
public class UsernameParam extends PageParam implements Serializable {


    /**
     * 默认都是模糊查询
     */
    @Query(QueryEnum.LIKE)
    private Integer age;

    /**
     * 默认都是模糊查询
     */
    @Query(QueryEnum.LIKE)
    private String name;

    /**
     * 默认都是模糊查询
     */
    @Query(QueryEnum.LIKE)
    private String province;

    /**
     * 默认都是模糊查询
     */
    @Query(QueryEnum.LIKE)
    private String sex;

    /**
     * 默认都是模糊查询
     */
    @Query(QueryEnum.LIKE)
    private Hourse hourse;
}
